package ruifeng.zcj.dig.base.bean;

import android.os.Parcel;

/**
 * Created by Administrator on 2016/9/21 0021.
 */
public class Entity extends Base {
    /**
     * msg : success
     * errorCode : 10000
     * userId : 1
     */
    private String msg;
    private String errorCode;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public boolean OK() {
        if (msg.equals("success")) {
            return true;
        } else if (errorCode.equals("10000")) {
            return true;
        } else if (errorCode.equals("40001")){
            return false;
        }else {
            return false;
        }
    }


}
